import { createStore } from "vuex";
// import {createStore} from "../lib/store";
const store = createStore({
  state() {
    return {
      count: 666,
    };
  },
  mutations: {
    add(state: any) {
      console.log("state", state);
      state.count++;
    },
  },
  actions: {
    asyncAdd(store) {
      setTimeout(() => {
        store.commit("add");
      }, 1000);
    },
  },
});
export default store;
